<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>General SQL Parser C/C++ Version: C:/prg/gsp_c/core/gsp_node.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="gudusoftware_190_120.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">General SQL Parser C/C++ Version
   </div>
   <div id="projectbrief">It&#39;s a library provides an in-depth and detailed analysis of SQL scripts for various databases</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_4270bfced15e0e73154b13468c7c9ad9.html">core</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">gsp_node.c File Reference<div class="ingroups"><a class="el" href="group__gsp__parsetree__node.html">Some mostly used parse tree nodes and statements</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>functions to manipulate parse tree nodes  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a421b82458175c994bd1969aed4f3bef6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgsp__sourcetoken.html">gsp_sourcetoken</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gsp__node_8c.html#a421b82458175c994bd1969aed4f3bef6">gsp_node_get_start_token</a> (<a class="el" href="struct_node.html">gsp_node</a> *node)</td></tr>
<tr class="separator:a421b82458175c994bd1969aed4f3bef6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b6acd79306e4195f430189032b362a8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgsp__sourcetoken.html">gsp_sourcetoken</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gsp__node_8c.html#a9b6acd79306e4195f430189032b362a8">gsp_node_get_end_token</a> (<a class="el" href="struct_node.html">gsp_node</a> *node)</td></tr>
<tr class="separator:a9b6acd79306e4195f430189032b362a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71834674cb5b9f5322d1c960148c862e"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gsp__node_8c.html#a71834674cb5b9f5322d1c960148c862e">gsp_node_text</a> (<a class="el" href="struct_node.html">gsp_node</a> *node)</td></tr>
<tr class="separator:a71834674cb5b9f5322d1c960148c862e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa71cd594693b06bc21e29a864c18335c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gsp__node_8c.html#aa71cd594693b06bc21e29a864c18335c">gsp_node_set_text</a> (<a class="el" href="struct_node.html">gsp_node</a> *node, char *text)</td></tr>
<tr class="separator:aa71cd594693b06bc21e29a864c18335c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb8079ef84ef25930ff120c95ddd744d"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gsp__node_8c.html#abb8079ef84ef25930ff120c95ddd744d">gsp_node_newtext</a> (<a class="el" href="struct_node.html">gsp_node</a> *node)</td></tr>
<tr class="separator:abb8079ef84ef25930ff120c95ddd744d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>functions to manipulate parse tree nodes </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a9b6acd79306e4195f430189032b362a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b6acd79306e4195f430189032b362a8">&#9670;&nbsp;</a></span>gsp_node_get_end_token()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgsp__sourcetoken.html">gsp_sourcetoken</a>* gsp_node_get_end_token </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_node.html">gsp_node</a> *&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>The last token of parse tree node </dd></dl>

</div>
</div>
<a id="a421b82458175c994bd1969aed4f3bef6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a421b82458175c994bd1969aed4f3bef6">&#9670;&nbsp;</a></span>gsp_node_get_start_token()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgsp__sourcetoken.html">gsp_sourcetoken</a>* gsp_node_get_start_token </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_node.html">gsp_node</a> *&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>The first token of parse tree node </dd></dl>

</div>
</div>
<a id="abb8079ef84ef25930ff120c95ddd744d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb8079ef84ef25930ff120c95ddd744d">&#9670;&nbsp;</a></span>gsp_node_newtext()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* gsp_node_newtext </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_node.html">gsp_node</a> *&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>get node text after modify node or sub node of it. caller must free this text </p>

</div>
</div>
<a id="aa71cd594693b06bc21e29a864c18335c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa71cd594693b06bc21e29a864c18335c">&#9670;&nbsp;</a></span>gsp_node_set_text()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gsp_node_set_text </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_node.html">gsp_node</a> *&#160;</td>
          <td class="paramname"><em>node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>set new text of this node, text set by this node will over writed if parent node set a new text later, or if parent node already set a text, then this set will be ignored</p>
<p>caller must free this text after <a class="el" href="gsp__node_8h.html#abb8079ef84ef25930ff120c95ddd744d">gsp_node_newtext()</a> was called. input parameter *text was \0 terminated UTF-8 encoded string. </p>

</div>
</div>
<a id="a71834674cb5b9f5322d1c960148c862e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71834674cb5b9f5322d1c960148c862e">&#9670;&nbsp;</a></span>gsp_node_text()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* gsp_node_text </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_node.html">gsp_node</a> *&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>return original string of node, caller must free memory of return string </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 13 2017 11:49:36 for General SQL Parser C/C++ Version by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
